import axios from '../utils/http' // 导入http中创建的axios实例
import { Base64 } from '../utils/base'
let baseObj = new Base64()
const base_url = process.env.BASE_API
const inter_url = '/proxy/cam/proxy/common?api='
const vipInfoApi = {
  // 获取会员基础资料列表信息

  getMemberInformationByList(params) {
    let url = 'CustomerSolicitFacade-getMemberInformationByList'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  // 获取会员基础资料详情

  getMemberInformationById(params) {
    let url = 'CustomerSolicitFacade-getMemberInformationById'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },

  // 会员卡券信息明细查询接口
  queryMemberCouponInfo(params) {
    let url = 'CustomerSolicitFacade-queryMemberCouponInfo'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  //车主权益领取情况查询接口
  queryCouponReceived(params) {
    let url = 'CustomerSolicitFacade-queryCouponReceived'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  // 会员绑车明细查询接口
  queryMemberCarBindingDetail(params) {
    let url = 'CustomerSolicitFacade-queryMemberCarBindingDetail'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  }
}

export default vipInfoApi
